export const addItems = (noticeType) => {
  return [
    {
      key: 'noticeType',
      label: '通知类型',
      type: 'select',
      rules: [{ required: true, message: '请输入' }],
      initialValue: noticeType || '',
      fieldProps: {
        dictKey: 'noticeType',
        props: { value: 'value', label: 'label' }
      }
    },
    {
      key: 'title',
      label: '通知标题',
      rules: [{ required: true, message: '请输入' }]
    },
    {
      key: 'content',
      label: '通知内容',
      type: 'textarea',
      rules: [{ required: true, message: '请输入' }],
      fieldProps: {
        placeholder: '请输入通知的时间，地点，内容...'
      }
    }
  ]
}
